Skip to main content

Get Presentation

Retrieve the status of a presentation generation task

Base URL

https://appdev.mexus.cc

Authentication

All API requests require an API Key included in the Header. If you don't have one, create it on the API Tokens page:

Authorization: Bearer YOUR_API_KEY

Endpoint

GET /api/v1/presentation/{taskId}
Authorization: Bearer YOUR_API_KEY

Path Parameters

ParameterTypeRequiredDescription
taskIdnumberYesThe task ID returned from the presentation generation request

Response

The response will vary depending on the status of the presentation generation task.

Response Structure

StatusResponse Fields
processingid, status, message
successid, status, url, filename, fileSize

Field Descriptions

FieldTypeDescription
idnumberThe task ID
statusstringCurrent status of the task: processing, success, error, or unknown
messagestringA human-readable message providing more information about the status
urlstringDownload URL for the generated presentation (only present for successful tasks)
filenamestringName of the generated presentation file (only present for successful tasks)
fileSizenumberSize of the generated file in bytes (only present for successful tasks)

Examples

Processing Status Response

{
"id": 123456,
"status": "processing",
"message": "Export is in progress"
}

Success Status Response

{
"id": 123456,
"status": "success",
"url": "https://storage.example.com/presentations/annual_report_2025.pptx",
"filename": "annual_report_2025.pptx",
"fileSize": 2458621
}

Usage Example

// JavaScript example
const checkPresentationStatus = async (taskId) => {
const response = await fetch(`https://api.example.com/api/v1/presentation/${taskId}`, {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});

const data = await response.json();

if (data.status !== 'success') {
console.log('Presentation is still being generated...');
return;
}

// download the presentation
const a = document.createElement("a");
a.href = data.url;
a.download = "presentation.pptx";
document.body.appendChild(a);
a.click();
document.body.removeChild(a);

return data;
};